public class Map extends GameStage {
  PlayerLoaderSaver pls;
  boolean combatchosen = false;
  boolean shopchosen = false;
  boolean inventorychosen = false;
  PImage img;
  Button b1;
  Button b2;
  Button b3;
  
  public Map(Player p) {
    img = loadImage("cavemenu.png");
    background(img);
    fill(255);
    b1 = new Button(56,480,190,75);
    b2 = new Button (313,480,190,75);
    b3 = new Button (562,480,190,75);
    pls = new PlayerLoaderSaver();
    pls.saveChar(p);
  }
  
  public void mouseAct(int x,int y) {
    if (b1.isClicked(x, y)) {
      combatchosen = true;
      return;
    }
    if (b2.isClicked(x, y)) {
      shopchosen = true;
      return;
    }
    if (b3.isClicked(x, y)) {
      inventorychosen = true;
      return;
    }
  }
}
